package com.gxa.service;

import com.gxa.common.R;
import com.gxa.pojo.Orders;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrdersService {
    R queryOrdersList(Integer currentPage, Integer pageSize);

//    R search(String customer_name, String consignee_phone, String order_id);

    R search( String conn,Integer currentPage,Integer pageSize);

    R deleteById(String order_id,Integer status);
    //
    R updateStatus(Integer status, String order_id);

    R updateShippingStatus(Integer shippingStatus,String order_id);

    R deleteOrderGoods(String order_id, Integer order_goods_id,Integer order_goods_status);
    R queryGoods (Integer currentPage,Integer pageSize);
    R addGoodOrder(String order_id, Integer goods_id);

    R updateOrderGoods(Map map);


    R queryByName(Integer customer_id,Integer currentPage,Integer pageSize );


    R queryOrderGoods(String order_id,Integer currentPage,Integer pageSize);

    R updateReceived(Integer received, String order_id);


    R queryByOrder_id(String order_id);

    R queryByTodayOrder_date(Integer currentPage,Integer pageSize);

    R queryWeekByOrder_date(Integer currentPage,Integer pageSize);

    R queryMonthByOrder_date(Integer currentPage,Integer pageSize);


    R queryOrders(Integer currentPage,Integer pageSize);

    R searchAddOrders(String argument,Integer currentPage,Integer pageSize);

    R updatreByOrders_Id(Map map);


    R countOrdersByEmployee(String start_time, String stop_time);

    R countOrdersByDept(String start_time, String stop_time);

    R add(Map map);

    R findAll();
}
